package ventanas;

import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JTextPane;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;

public class VentanaEliminarAlumno extends JFrame{

	private JTextField textField;
	public VentanaEliminarAlumno() {
		setTitle("Eliminar Alumno");
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 121, 0, 65, 0, 0, 0, 0, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		
		JLabel lblIntroduceElDni = new JLabel("Introduce el DNI del alumno que desee eliminar");
		lblIntroduceElDni.setFont(new Font("Tahoma", Font.PLAIN, 16));
		GridBagConstraints gbc_lblIntroduceElDni = new GridBagConstraints();
		gbc_lblIntroduceElDni.insets = new Insets(0, 0, 5, 5);
		gbc_lblIntroduceElDni.gridx = 6;
		gbc_lblIntroduceElDni.gridy = 2;
		getContentPane().add(lblIntroduceElDni, gbc_lblIntroduceElDni);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.insets = new Insets(0, 0, 5, 5);
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.gridx = 6;
		gbc_textField.gridy = 5;
		getContentPane().add(textField, gbc_textField);
		textField.setColumns(10);
		
		JButton btnOk = new JButton("OK");
		GridBagConstraints gbc_btnOk = new GridBagConstraints();
		gbc_btnOk.insets = new Insets(0, 0, 0, 5);
		gbc_btnOk.gridx = 6;
		gbc_btnOk.gridy = 7;
		getContentPane().add(btnOk, gbc_btnOk);
	}
}
